package com.qianfeng.db1.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
@Qualifier("db1SqlSessionFactory")  //指明对应的数据源（db1SqlSessionFactory在com.qianfeng.datasource中）
public interface UsersMapper {

	@Insert("insert into users(name,password) values(#{name},#{password})")
	void addUser(@Param("name") String name,@Param("password") String password);
}
